<style>
/* 商品列表 */
.taobao-list-item{padding: 1px;margin:0px;float:left;width: 180px;border:1px solid #CCC;position: relative;}
.taobao-list-item .shangchengflag {position: absolute;right:0;top: 0;opacity: 0.7;}
.itemimg {position: relative;width:180px;height: 180px;}
.itemtitle {
    background-color: #6F6F6F;bottom: 0;
    color: #FFFFFF;line-height: 18px;
    position: absolute;
    opacity: 0.8;padding: 2px 5px;
    display:none;
}
.itemimg img{
	max-width: 180px;
	max-height:180px;
}
.promo_num {color: #FF5500;font-family: tahoma,arial,"宋体";font-size: 14px;}
.itemcomment{height: 80px;overflow: hidden;}    
.itemcomment li {
    background-color: #FFFFFF;
    border-top: 1px solid #EAE9E8;color: #76838B;overflow: hidden;padding: 2px 2px;
    text-align: left;word-wrap: break-word;
}
</style>
<ul>
	<li class="taobao-list-item">
		<div class="itemimg">
		<div class="itemtitle">{{$item['name']}}</div> 
		{{$this->Html->link(
			$this->Html->image($item['pic_url'], array('title'=>$item['name'],'alt'=>$item['name'])),
			//'/taobaokes/'.($item['slug']?$item['slug']:$item['id']).'.html',
			 $item['click_url'],
				array('title'=>$item['name'],'target'=>'_blank','escape'=>false)
		)
		}}
                {{if $item['shop_type']=='B'}}{{$this->Html->image("/img/taobao/shangcheng.gif",array('class'=>'shangchengflag'))}}{{/if}}
		</div>		
		{{if $item_all['TaobaoPromotion']['promPrice']}}
		<p>月销：{{$item['volume']}}件 <span style="text-decoration: line-through;">￥{{$item['price']}}</span></p>
		<p style="height:20px;">折扣：<span class="promo_num">{{$item_all['TaobaoPromotion']['discountValue']}}折</span> </p>
		<p style="height:20px;">{{$item_all['TaobaoPromotion']['name']}}：<span class="promo_num">{{$item_all['TaobaoPromotion']['promPrice']}}</span></p>
		{{else}}
		<p>月销：{{$item['volume']}}件  ￥{{$item['price']}}</p>
		{{/if}}

                {{if !empty($item_all['TaobaoTradeRate'])}}
                <ul class="itemcomment">
                    {{loop $item_all['TaobaoTradeRate']  $key $trade_rate}}
                    {{if $item_all['TaobaoPromotion']['promPrice'] && $key>1}} {{eval break;}}
                    {{elseif $key>4}}
                    {{eval break;}}
                    {{/if}}
                    <li><span title="{{$trade_rate['nick']}}">{{usubstr($trade_rate['nick'],0,3,'')}}</span>:<span title="{{$trade_rate['name']}}">{{usubstr($trade_rate['name'],0,25)}}</span></li>
                    {{/loop}}
                </ul>
                {{/if}}		
</li>
	
</ul>